<?php

$conn = @ mysql_connect("localhost", "root", "") or die("mysql_error()");
mysql_select_db("bbs", $conn);
mysql_query("set names utf8"); //编码格式;

function htmtocode($content){
	$content = str_replace("\n","<br>",str_replace(" ","&nbsp;",$content));
	return $content;
}

?>